﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            PatientForm pf = new PatientForm();
            if (pf.ShowDialog() == DialogResult.OK)
            {
                dataGridView1.Rows.Add();
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Do you really want to delete row?", "delete", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                MessageBox.Show("Do delete");
            }
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Diags d = new Diags();
            d.ShowDialog();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }

    class Patient
    {
        public string Name { get; set; }

        public string SurName { get; set; }
    }
}
